import 'dart:ui';

import 'package:dk_flutter_module_sale/sale/sale_out/business_statistic/widget/painter_data_report_form_dash_board.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';


class TestDashWidget extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return TestDashState();
  }
}

class TestDashState extends State<TestDashWidget> {
  Picture bg;

  Picture indicator;

  @override
  void initState() {
    super.initState();
//    bg = DashBoardTablePainter(Colors.blue, "进度", "今日目标", "现在数量")
//        .getBackGround();
    indicator = IndicatorPainter(Colors.blue).drawIndicator();
  }

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: EdgeInsets.only(top: 100),
      child: CustomPaint(
          size: Size(375, 180),
          painter: DashBoardPainter(
            50.0,
            Colors.blue,
            bg,
            indicator,
          )),
    );
  }
}
